package AST;

public class NotTest {
	private NotTest notTest;
	private Comparison comparison;

	public NotTest(NotTest notTest, Comparison comparison) {
		print();
		this.notTest = notTest;
		this.comparison = comparison;
	}

	public NotTest() {
		print();
	}

	public NotTest getNotTest() {
		return notTest;
	}

	public void setNotTest(NotTest notTest) {
		this.notTest = notTest;
	}

	public Comparison getComparison() {
		return comparison;
	}

	public void setComparison(Comparison comparison) {
		this.comparison = comparison;
	}

	public void print() {
		System.out.println("NotTest");
	}

	public void genC(PW pw) {
		if (comparison != null) {
			comparison.genC(pw);
		} else {
			pw.print("!");
			notTest.genC(pw);
		}

	}

}
